

var React = require('react');
var ReactDOM = require('react-dom');

var Hello =  React.createClass({
    render:function(){
        return(
            <div>
             <h1> 你好,{this.props.age}</h1>

            </div>

        )

    }
})
var props = {
    name:'jack',
    age:18
};

var MyHello =    <Hello {...props} />;


ReactDOM.render(
    MyHello,document.getElementById('example')
)
